<div>
    <h2 id="page-heading">
        <span jhiTranslate="hdfsutilApp.hdfsutilHdfsLog.home.title">Hdfs Logs</span>
        <button id="jh-create-entity" class="btn btn-primary float-right jh-create-entity create-hdfs-log" [routerLink]="['/hdfs-log/new']">
            <fa-icon [icon]="'plus'"></fa-icon>
            <span  jhiTranslate="hdfsutilApp.hdfsutilHdfsLog.home.createLabel">
            Create new Hdfs Log
            </span>
        </button>
    </h2>
    <jhi-alert></jhi-alert>
    <br/>
    <div class="table-responsive" *ngIf="hdfsLogs">
        <table class="table table-striped">
            <thead>
            <tr jhiSort [(predicate)]="predicate" [(ascending)]="reverse" [callback]="transition.bind(this)">
            <th jhiSortBy="id"><span jhiTranslate="global.field.id">ID</span> <fa-icon [icon]="'sort'"></fa-icon></th>
            <th jhiSortBy="name"><span jhiTranslate="hdfsutilApp.hdfsutilHdfsLog.name">Name</span> <fa-icon [icon]="'sort'"></fa-icon></th>
            <th jhiSortBy="src"><span jhiTranslate="hdfsutilApp.hdfsutilHdfsLog.src">Src</span> <fa-icon [icon]="'sort'"></fa-icon></th>
            <th jhiSortBy="dst"><span jhiTranslate="hdfsutilApp.hdfsutilHdfsLog.dst">Dst</span> <fa-icon [icon]="'sort'"></fa-icon></th>
            <th jhiSortBy="totalSize"><span jhiTranslate="hdfsutilApp.hdfsutilHdfsLog.totalSize">Total Size</span> <fa-icon [icon]="'sort'"></fa-icon></th>
            <th jhiSortBy="currentSize"><span jhiTranslate="hdfsutilApp.hdfsutilHdfsLog.currentSize">Current Size</span> <fa-icon [icon]="'sort'"></fa-icon></th>
            <th jhiSortBy="process"><span jhiTranslate="hdfsutilApp.hdfsutilHdfsLog.process">Process</span> <fa-icon [icon]="'sort'"></fa-icon></th>
            <th jhiSortBy="state"><span jhiTranslate="hdfsutilApp.hdfsutilHdfsLog.state">State</span> <fa-icon [icon]="'sort'"></fa-icon></th>
            <th jhiSortBy="desc"><span jhiTranslate="hdfsutilApp.hdfsutilHdfsLog.desc">Desc</span> <fa-icon [icon]="'sort'"></fa-icon></th>
            <th jhiSortBy="createdDate"><span jhiTranslate="hdfsutilApp.hdfsutilHdfsLog.createdDate">Created Date</span> <fa-icon [icon]="'sort'"></fa-icon></th>
            <th></th>
            </tr>
            </thead>
            <tbody>
            <tr *ngFor="let hdfsLog of hdfsLogs ;trackBy: trackId">
                <td><a [routerLink]="['/hdfs-log', hdfsLog.id, 'view' ]">{{hdfsLog.id}}</a></td>
                <td>{{hdfsLog.name}}</td>
                <td>{{hdfsLog.src}}</td>
                <td>{{hdfsLog.dst}}</td>
                <td>{{hdfsLog.totalSize}}</td>
                <td>{{hdfsLog.currentSize}}</td>
                <td>{{hdfsLog.process}}</td>
                <td>{{hdfsLog.state}}</td>
                <td>{{hdfsLog.desc}}</td>
                <td>{{hdfsLog.createdDate | date:'medium'}}</td>
                <td class="text-right">
                    <div class="btn-group flex-btn-group-container">
                        <button type="submit"
                                [routerLink]="['/hdfs-log', hdfsLog.id, 'view' ]"
                                class="btn btn-info btn-sm">
                            <fa-icon [icon]="'eye'"></fa-icon>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.view">View</span>
                        </button>
                        <button type="submit"
                                [routerLink]="['/hdfs-log', hdfsLog.id, 'edit']"
                                class="btn btn-primary btn-sm">
                            <fa-icon [icon]="'pencil-alt'"></fa-icon>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.edit">Edit</span>
                        </button>
                        <button type="submit"
                                [routerLink]="['/', { outlets: { popup: 'hdfs-log/'+ hdfsLog.id + '/delete'} }]"
                                replaceUrl="true"
                                queryParamsHandling="merge"
                                class="btn btn-danger btn-sm">
                            <fa-icon [icon]="'times'"></fa-icon>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.delete">Delete</span>
                        </button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div *ngIf="hdfsLogs && hdfsLogs.length">
        <div class="row justify-content-center">
            <jhi-item-count [page]="page" [total]="queryCount" [maxSize]="5" [itemsPerPage]="itemsPerPage"></jhi-item-count>
        </div>
        <div class="row justify-content-center">
            <ngb-pagination [collectionSize]="totalItems" [(page)]="page" [pageSize]="itemsPerPage" [maxSize]="5" [rotate]="true" [boundaryLinks]="true" (pageChange)="loadPage(page)"></ngb-pagination>
        </div>
    </div>
</div>
